package com.rgs.base.core.util.excel.bo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Ren Gaoshuai
 * @date 2022-03-08 15:45
 **/
@Data
public class ExcelDynamicHeadBO {
    private List<String> columnMerge;
    private String columnName;
    private Integer orderNumber;
    private Boolean isMap;

    public ExcelDynamicHeadBO(List<String> columnMerge, String columnName) {
        this.columnMerge = columnMerge;
        this.columnName = columnName;
        this.orderNumber = 0;
        this.isMap = false;
    }

    public ExcelDynamicHeadBO(List<String> columnMerge, String columnName, Integer orderNumber, Boolean isMap) {
        this.columnMerge = columnMerge;
        this.columnName = columnName;
        this.orderNumber = orderNumber;
        this.isMap = isMap;
    }

    public static final ExcelDynamicHeadBO DEF_EXCEL_DYNAMIC_HEAD =
            new ExcelDynamicHeadBO(new ArrayList<>(0), "");

}
